package com.wei.czz.framework.admin.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wei.czz.common.dto.admin.UserMessageDto;
import com.wei.czz.common.vo.admin.userMessage.UserMessageFormVo;
import com.wei.czz.framework.admin.entity.UserMessageEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2022-03-10 23:00:19
 * className: UserMessageDao 用户消息操作请求数据库交互接口
 * version: 1.0
 * description:
 */
public interface UserMessageDao extends BaseMapper<UserMessageEntity> {

    /**
     * 分页查询用户消息列表
     * @param page              mp分页对象
     * @param userMessageFormVo 用户消息请求参数表单对象
     * @return 分页查询结果
     */
    Page<UserMessageDto> getUserMessageList(Page<UserMessageDto> page, @Param("userMessageFormVo") UserMessageFormVo userMessageFormVo);
}
